<!DOCTYPE html>
<html>

<head>
    <title>{$listInfo.seoTitle|default= $listInfo.title}</title>
    <meta name="keywords" content="{$listInfo.seoKeywords|default=$listInfo.title}" />
    <meta name="description" content="{$listInfo.seoDescription|default=$listInfo.title}">
    {include file='../public/header' /}
</head>

<body class="hold-transition layout-top-nav">
    <div class="wrapper">
        {include file='../public/nav' /}
        <div class="content-wrapper">
            <div class="content">
                <div class="container">
                    <div class="row">
                        <div class="col-lg-12 h-75">
                            <div class="card mt-4">
                                <br>
                                {volist name="navview" id="vo" key='k'}
                                <ul class="nav">
                                    <li class="nav-item">
                                        <strong class="nav-link">{$k == 1 ? '学习方向':'课程分支'}:</strong>
                                    </li>
                                    {volist name="vo" id="v"}
                                    <li class="nav-item" id="nav-item">
                                        <a class="nav-link text-muted {$v.active ? 'active':'' }" href="{:url('index/list',['list_id'=>$v['id']])}">{$v.title}</a>
                                    </li>
                                    {/volist}
                                </ul>
                                <hr>
                                {/volist}
                                <br>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        {volist name="list" id="vo" key="k"}
                        <div class="col-md-3">
                            <div class="card card-widget widget-user wider">
                                <a href="{:url('/course',['id'=>$vo['id']])}">
                                    <div class="widget-user-header text-white" style="background: url('{:getUrlPath($vo.cource_image_url)}') center center;">
                                    </div>
                                </a>
                                <div id="course-title">
                                    <p class="card-text p-2 d-inline-block text-truncate">
                                        {if $vo.sell_status}
                                        <span class="badge badge-danger">
                                            ￥{$vo.sell_price}
                                        </span>
                                        {else /}
                                        <span class="badge badge-info">
                                            免费
                                        </span>
                                        {/if}
                                        <a href="{:url('/course',['id'=>$vo['id']])}" class="text-muted">
                                            {$vo.title}
                                        </a>
                                    </p>
                                </div>
                                <div class="mb-2">
                                    <span class="text-black-50 ml-2"> <small>总有刁民想害朕</small></span>
                                    <span class=" float-right text-black-50 mr-2"><small><i class="fa fa-user-o" aria-hidden="true"></i> 1200</small></span>
                                </div>
                            </div>
                        </div>
                        {/volist}
                    </div>
                    <div>
                        {$page|raw}
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    {include file='../public/footer' /}
    </div>
    {include file='../public/script' /}
</body>

</html>